import request from 'utils/request'

// 登录
export const login = (mobile, code) => {
  return request({
    url: '/authorizations',
    method: 'post',
    data: {
      mobile,
      code
    }
  })
}

// 获取用户信息
export const getUserProfile = () => {
  return request({
    url: '/user/profile',
    method: 'GET'
  })
}
